package org.bp.ioc.utils;

import java.util.Map;

public final class CollectionUtils {
	public static Object getObject(Map<String, Object> map, String name) {
		return getObject(map, name, null);
	}

	public static Object getObject(Map<String, Object> map, String name, String defaultValue) {
		if (ObjectUtils.isNull(map)) {
			return null;
		}
		return map.containsKey(name) ? map.get(name) : defaultValue;
	}
}